﻿using System;
using System.Collections.Generic;
using SharpArch.Core.PersistenceSupport;
using SharpArch.Core;
using NHibernate.Validator;

namespace Quiziqal.Domain
{
    public class Quiz : PersistentObject
    {
        public Quiz() { }
        
        public Quiz(User owner)
        {
            Check.Require(owner != null);

            Owner = owner;
        }

        [NotNullNotEmpty]
        public virtual string Name { get; set; }

        [NotNull]
        public virtual User Owner { get; protected set; }

        public virtual DateTime LastModified { get; set; }
    }
}
